package com.winter.mapper;

import com.winter.model.IindudyReportPolicy;
import com.winter.model.vo.response.IindudyReportPolicyResponseVo;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IindudyReportPolicyMapper {
    int deleteByPrimaryKey(Short id);

    int insert(IindudyReportPolicy record);

    int insertSelective(IindudyReportPolicy record);

    IindudyReportPolicy selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IindudyReportPolicy record);

    int updateByPrimaryKeyWithBLOBs(IindudyReportPolicy record);

    int updateByPrimaryKey(IindudyReportPolicy record);

    List<IindudyReportPolicyResponseVo> informationList(@Param("typeFlag") String typeFlag, @Param("key") String key);

    int updateViewhits(@Param("id") Long id);

    Map<String, Object> selectByLatestTime();

    List<Map<String, Object>> selectByList();
}